How can I get my Python script to work correctly with both normal execution and pytest

join shbcf.ru